<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
// | 官方网站: http://dolphinphp.com
// +----------------------------------------------------------------------
// | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------

namespace app\goods\validate;

use think\Validate;

/**
 * 属性验证
 */
class CodeRule extends Validate
{
    //定义验证规则
    protected $rule = [
        
        'codename|名称'      => 'require',
        'codevalue2|选值'    => 'require',
        'codevalue4|选值'    => 'require',
        'codevalue6|选值'    => 'require',
    ];

    //定义验证提示
    protected $message = [
        'codename.require'      => '请输入名称',
        'codevalue2.require'    => '请选值款号、颜色、尺码',
        'codevalue4.require'    => '请选值款号、颜色、尺码',
        'codevalue6.require'    => '请选值款号、颜色、尺码',
    ];
}
